package com.xuxin.pda.contract;

import com.xuxin.pda.bean.CommitBean;
import com.xuxin.pda.bean.DepartmentBean;
import com.xuxin.pda.bean.TrashTypeBean;
import com.xuxin.pda.presenter.TrashCollectPresenter;

/**
 * Created by xu_xin
 * Created on 2020/12/24 0024
 */
public interface TrashCollectContract {

    interface Model {

        void getDepartment(TrashCollectPresenter presenter, String departmentId);

        void getTrashType(TrashCollectPresenter presenter);

        void commit(TrashCollectPresenter presenter, String userId, String weight, String departmentId, String categoryName,String ENum);
    }

    interface View extends BaseContract.view {

        void onSuccess(DepartmentBean dptBean);

        void onSuccess(TrashTypeBean trashTypeBean);

        void onSuccess(CommitBean commitBean);
    }

    interface Presenter extends BaseContract.presenter {

        void getDepartment(String departmentId);

        void getTrashType();

        void commit(String userId, String weight, String departmentId, String categoryName,String ENum);

        void onSuccess(DepartmentBean dptBean);

        void onSuccess(TrashTypeBean trashTypeBean);

        void onSuccess(CommitBean commitBean);
    }
}